package com.yihu.wlyy.repository;

import com.yihu.wlyy.entity.WlyyJobConfig;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Administrator on 2016/8/16.
 */
public interface JobConfigDao extends PagingAndSortingRepository<WlyyJobConfig, String>,JpaSpecificationExecutor<WlyyJobConfig> {

    @Query(" from WlyyJobConfig p where p.status=?1 and p.del='1'")
    List<WlyyJobConfig> findByStatus(String s);
}
